angular.
module('topBar').
component('topBar', {
  templateUrl:
  'views/app/top-bar/top-bar.template.html',
  controller: function ($scope,$cookies,$http,$window,$location,$rootScope) {
    $scope.userName = $cookies.get('user')

    $scope.logOut = function(){
    	$cookies.remove('user')
    	$cookies.remove('session')
    	$cookies.remove('right')
    	$location.path('/login')
    }
  }})



